Use service mesh and mTLS to establish secure routes and TLS termination

Skip to content

Navigation

Menu

AI

Overview

AI news
Technical blog
Live AI events
Inference explained
See our approach

Technical blog

Live AI events

Inference explained

See our approach

Products

Red Hat AI Enterprise
Red Hat AI Inference Server
Red Hat Enterprise Linux AI
Red Hat OpenShift AI
Explore Red Hat AI

Red Hat AI Inference Server

Red Hat Enterprise Linux AI

Red Hat OpenShift AI

Explore Red Hat AI

Engage & learn

Learning hub
AI topics
AI partners
Services for AI

AI topics

AI partners

Services for AI

Hybrid cloud

Platform solutions

Artificial intelligence Build, deploy, and monitor AI models and apps.
Linux standardization Get consistency across operating environments.
Application development Simplify the way you build, deploy, and manage apps.
Automation Scale automation and unite tech, teams, and environments.

Linux standardization Get consistency across operating environments.

Application development Simplify the way you build, deploy, and manage apps.

Automation Scale automation and unite tech, teams, and environments.

Use cases

Virtualization Modernize operations for virtualized and containerized workloads.
Digital sovereignty Control and protect critical infrastructure.
Security Code, build, deploy, and monitor security-focused software.
Edge computing Deploy workloads closer to the source with edge technology.

Digital sovereignty Control and protect critical infrastructure.

Security Code, build, deploy, and monitor security-focused software.

Edge computing Deploy workloads closer to the source with edge technology.

Explore solutions

Solutions by industry

Automotive
Financial services
Healthcare
Industrial sector
Media and entertainment
Public sector (Global)
Public sector (U.S.)
Telecommunications

Financial services

Healthcare

Industrial sector

Media and entertainment

Public sector (Global)

Public sector (U.S.)

Telecommunications

Discover cloud technologies

[-]

Learn how to use our cloud products and solutions at your own pace in the Red Hat® Hybrid Cloud Console.

Products

Platforms

Red Hat AI Develop and deploy AI solutions across the hybrid cloud.
Red Hat Enterprise Linux Support hybrid cloud innovation on a flexible operating system.
Red Hat OpenShift Build, modernize, and deploy apps at scale.
Red Hat Ansible Automation Platform Implement enterprise-wide automation.

Red Hat Enterprise Linux Support hybrid cloud innovation on a flexible operating system.

Red Hat OpenShift Build, modernize, and deploy apps at scale.

Red Hat Ansible Automation Platform Implement enterprise-wide automation.

Featured

Red Hat OpenShift Virtualization Engine
Red Hat OpenShift Service on AWS
Microsoft Azure Red Hat OpenShift
See all products

Red Hat OpenShift Service on AWS

Microsoft Azure Red Hat OpenShift

See all products

Try & buy

Start a trial
Buy online
Integrate with major cloud providers

Buy online

Integrate with major cloud providers

Services & support

Consulting
Product support
Services for AI
Technical Account Management
Explore services

Product support

Services for AI

Technical Account Management

Explore services

Training

Training & certification

Courses and exams
Certifications
Skills assessments
Red Hat Academy
Learning subscription
Explore training

Certifications

Skills assessments

Red Hat Academy

Learning subscription

Explore training

Featured

Red Hat Certified OpenShift Administrator exam
Containers, Kubernetes and Red Hat OpenShift Technical Overview (No cost)
Red Hat OpenShift Administration I: Operating a Production Cluster
Red Hat OpenShift Administration II: Configuring a Production Cluster
Red Hat Certified Specialist in Containers exam

Containers, Kubernetes and Red Hat OpenShift Technical Overview (No cost)

Red Hat OpenShift Administration I: Operating a Production Cluster

Red Hat OpenShift Administration II: Configuring a Production Cluster

Red Hat Certified Specialist in Containers exam

Services

Consulting
Partner training
Product support
Services for AI
Technical Account Management

Partner training

Product support

Services for AI

Technical Account Management

Learn

Build your skills

Documentation
Hands-on labs
Hybrid cloud learning hub
Interactive learning experiences
Training and certification

Hands-on labs

Hybrid cloud learning hub

Interactive learning experiences

Training and certification

More ways to learn

Blog
Events and webinars
Podcasts and video series
Red Hat TV
Resource library

Events and webinars

Podcasts and video series

Red Hat TV

Resource library

For developers

[-]

Discover resources and tools to help you build, deliver, and manage cloud-native applications and services.

Partners

For customers

Our partners
Red Hat Ecosystem Catalog
Find a partner

Red Hat Ecosystem Catalog

Find a partner

For partners

Partner Connect
Become a partner
Training
Support
Access the partner portal

Become a partner

Training

Support

Access the partner portal

Build solutions powered by trusted partners

[-]

Find solutions from our collaborative community of experts and technologies in the Red Hat® Ecosystem Catalog.

Console

Docs

Support

Search

×

I'd like to:

Start a trial

Buy a learning subscription

Manage subscriptions

Contact sales

Contact customer service

See Red Hat jobs

Help me find:

Documentation

Developer resources

Tech topics

Architecture center

Security updates

Customer support

I want to learn more about:

AI

Application modernization

Automation

Cloud-native applications

Linux

Virtualization

New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

Product trial center

Courses and exams

All products

Tech topics

Resource library

Log in

Get more with a Red Hat account

Console access

Event registration

Training & trials

World-class support

A subscription may be required for some services.

Log in or register

Change page language

简体中文

English

Français

Deutsch

Italiano

日本語

한국어

Português

Español

Contact us

Red Hat Blog Menu

By product
Red Hat AI
Red Hat Ansible Automation Platform
Red Hat Enterprise Linux
Red Hat OpenShift More products

Red Hat AI

Red Hat Ansible Automation Platform

Red Hat Enterprise Linux

Red Hat OpenShift More products

By topic
AI
Virtualization
Digital sovereignty
Applications
Automation
Cloud services
Edge computing
Infrastructure
Open hybrid cloud
Original shows
Security All topics

AI

Virtualization

Digital sovereignty

Applications

Automation

Cloud services

Edge computing

Infrastructure

Open hybrid cloud

Original shows

Security All topics

Podcasts
Technically Speaking with Chris Wright
Code Comments
Command Line Heroes
Compiler

Technically Speaking with Chris Wright

Code Comments

Command Line Heroes

Compiler

More blogs
Red Hat Developer blog
Red Hat Partner Connect blog

Red Hat Developer blog

Red Hat Partner Connect blog

Use service mesh and mTLS to establish secure routes and TLS termination

February 7, 2023 Cheslav Versky 3-minute read

Security

Containers

Share

Subscribe to RSS

Back to all posts

The first two articles in this series covered establishing secure routes and TLS termination and gave an example of using wildcard certificates to secure end-to-end TLS.

This article will explore another approach to securing TLS and illustrate it with a command-line example. It uses Red Hat OpenShift Service Mesh (based on the Istio project), which includes a reverse proxy called Ingress-Gateway implemented by Envoy.

[ Learn how to build a flexible foundation for your organization. Download An architect's guide to multicloud infrastructure. ]

What are mTLS and service mesh?

Mutual Transport Layer Security (mTLS) is a protocol that allows two parties to authenticate each other using certificates. It can be used with more general protocols, such as Internet Key Exchange (IKE), Secure Shell (SSH), and Transport Layer Security (TLS) and can be implemented without making changes to the application or service code. In a service mesh, mTLS is typically handled by the infrastructure, using sidecar proxies to establish secure connections between workloads.

Istio is a service mesh that can securely provision strong identities to every workload using X.509 certificates. Istio agents, which run alongside Envoy proxies, work with istiod to automate the rotation of keys and certificates at scale. The diagram and summary below illustrate the Istio identity-provisioning flow, as described in the Istio docs.

istiod offers a gRPC service to take certificate signing requests (CSRs).

When started, the Istio agent creates the private key and CSR and then sends the CSR with its credentials to istiod for signing.

The certificate authority (CA) in istiod validates the credentials carried in the CSR. Upon success, it signs the CSR to generate the certificate.

When a workload starts, Envoy requests the certificate and key from the Istio agent in the same container via the Envoy secret discovery service (SDS) API.

The Istio agent sends the certificates received from istiod and the private key to Envoy via the Envoy SDS API.

The Istio agent monitors the expiration of the workload certificate. The above process repeats periodically for certificate and key rotation.

By default, mTLS in OpenShift Service Mesh is enabled and set to permissive mode, where the sidecars in Service Mesh accept both plain-text traffic and connections encrypted using mTLS.

Enabling mTLS across the mesh at the control plane level secures all the traffic in the service mesh without rewriting hosted applications and workloads. You can secure namespaces in the mesh at the data-plane level in the ServiceMeshControlPlane resource. To customize traffic encryption connections, namespaces at the application level should be configured with PeerAuthentication and DestinationRule resources.

Within Istio, the Ingress-Gateway always operates in reencrypt mode. A company-signed certificate must be supplied to the Ingress-Gateway. You can use cert-manager to do this because the Ingress-Gateway consumes certificates from secrets.

High-level architecture

The components above form the following general architecture:

You can configure the internal connections in the mesh to use mTLS. The Istio Certificate Authority automatically generates certificates to support mTLS connections and injects them into the application pods. In this case, the use of mTLS carries an additional benefit since it allows administrators to create role-based access control (RBAC) rules in the OpenShift cluster to specify which client can connect to what services.

[ Simplify your security operations center. ]

Enable strict mTLS across the service mesh

Because hosted workloads do not communicate with outside services, you can quickly enable mTLS across the mesh without communication interruptions. Do that by setting spec.security.dataPlane.mtls to true in the ServiceMeshControlPlane resource. The Operator then creates the required resources.

Here is an example:

Furthermore, you can create a policy to configure mTLS more granularly for individual services. To see how to configure sidecars for incoming or outgoing connections for specific services, please refer to OpenShift Service Mesh's documenation.

Page 5 of the U.S, Department of Defense Enterprise DevSecOps Reference Design requires:

Use of a service mesh within the Kubernetes orchestrator to manage all east-west networks.

Mandatory adoption of the Sidecar Container Security Stack (SCSS) to implement zero trust down to the container/function level, also providing behavior protection.

The same document calls out service mesh on page 21 for its ability to "...enforce zero trust mTLS traffic for east/west traffic."

[ Learn the basics in the Kubernetes cheat sheet. ]

Wrap up

The next and final part in this series will examine the use of Keycloak, an open source tool for single sign-on (SSO) and identity and access management. It provides many features and capabilities, including support for end-to-end TLS and secure protocols and algorithms for encrypting data in transit. Keycloak, which is the basis for Red Hat Single Sign-On, is a viable alternative to most of the proprietary solutions on the market today, such as Okta, Auth0, or OneLogin.

About the author

[

Cheslav Versky

](https://www.redhat.com/en/authors/cheslav-versky)

Cheslav Versky got his start in systems engineering by hacking an early programmable calculator with one hundred steps of volatile memory, and 15 save registers. He later earned a degree in pure math, served a stint at a pioneering genomics startup, and spent over 20 years designing and implementing high-availability and data protection strategies for many global brand names, such as Apple, Visa, Chevron, and others.

Cheslav is currently an Associate Principal Solution Architect and Team Lead for the Navy/USMC at Red Hat, where he concentrates on helping the Navy to better coordinate and operate information systems critical for tactical operations while improving overall efficiency by leveraging the open source way of collaboration to innovate faster

Read full bio

Enter keywords here to search blogs

Search

More like this

Blog post

MCP security: Implementing robust authentication and authorization

Blog post

AI trust through open collaboration: A new chapter for responsible innovation

Original podcast

Post-quantum Cryptography | Compiler

Original podcast

Understanding AI Security Frameworks | Compiler

Keep exploring

Mastering OpenShift Virtualization: Troubleshooting and Support Webinar

Red Hat Certified System Administrator exam Training

Solve business and IT challenges with Red Hat Enterprise Linux 10 E-book

Browse by channel

Explore all channels

Automation

[-]

The latest on IT automation for tech, teams, and environments

Artificial intelligence

[-]

Updates on the platforms that free customers to run AI workloads anywhere

Open hybrid cloud

[-]

Explore how we build a more flexible future with hybrid cloud

Security

[-]

The latest on how we reduce risks across environments and technologies

Edge computing

[-]

Updates on the platforms that simplify operations at the edge

Infrastructure

[-]

The latest on the world's leading enterprise Linux platform

Applications

[-]

Inside our solutions to the toughest application challenges

Virtualization

[-]

The future of enterprise virtualization for your workloads on-premise or across clouds

Red Hat footer

LinkedIn

YouTube

Facebook

X

Platforms

Red Hat AI

Red Hat Enterprise Linux

Red Hat OpenShift

Red Hat Ansible Automation Platform

See all products

Tools

Training and certification

My account

Customer support

Developer resources

Find a partner

Red Hat Ecosystem Catalog

Documentation

Try, buy, & sell

Product trial center

Red Hat Store

Buy online (Japan)

Console

Communicate

Contact sales

Contact customer service

Contact training

Social

About Red Hat

Red Hat is an open hybrid cloud technology leader, delivering a consistent, comprehensive foundation for transformative IT and artificial intelligence (AI) applications in the enterprise. As a trusted adviser to the Fortune 500, Red Hat offers cloud, developer, Linux, automation, and application platform technologies, as well as award-winning services.

Our company

How we work

Customer success stories

Analyst relations

Newsroom

Open source commitments

Our social impact

Jobs

Change page language

简体中文

English

Français

Deutsch

Italiano

日本語

한국어

Português

Español

Red Hat footer

Red Hat legal and privacy links

About Red Hat

Jobs

Events

Locations

Contact Red Hat

Red Hat Blog

Inclusion at Red Hat

Cool Stuff Store

Red Hat Summit

© 2026 Red Hat

Red Hat legal and privacy links

Privacy statement

Terms of use

All policies and guidelines

Digital accessibility

Cookie preferences

How we use cookies

We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.

Accept All More Options